package com.ylbh.modules.rechargeablecard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.rechargeablecard.dto.CardListDTO;
import com.ylbh.common.pojo.rechargeablecard.vo.CardListVO;
import com.ylbh.modules.rechargeablecard.entity.RechargeableCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 充值卡
 * @author czx
 * @date 2019-05-09 19:25:02
 */
@Mapper
@Repository
public interface RechargeableCardMapper extends BaseMapper<RechargeableCard> {

    /**
     * 充值卡列表
     * @param cardListDTO
     * @param page
     * @return
     */
    List<CardListVO> selectCardList(@Param(value = "cardListDTO")CardListDTO cardListDTO, Page page);

    /**
     * 充值卡状态修改
     * @param ids
     * @param type
     */
    void updateRechargeableCardStatusById(@Param(value = "ids") List<String> ids, String type);
}
